package com.example.bookstore.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {

    public String name;
    public String author;
    public int cid;

    public Book(String name, String author) {
        this.name = name;
        this.author = author;
    }



    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", cid=" + cid +
                '}';
    }
}
